package cn.hnucm.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author zjl
 * @since 2021-12-08
 */
@Data
public class TbLog {
    public TbLog(){

    }
    public TbLog(int userId, String operation, String method, String params, Long time, String ip, String createTime) {
        this.userId = userId;
        this.operation = operation;
        this.method = method;
        this.params = params;
        this.time = time;
        this.ip = ip;
        this.createTime = createTime;
    }

    private Integer logId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户操作
     */
    private String operation;

    /**
     * 请求方法
     */
    private String method;

    /**
     * 请求参数
     */
    private String params;

    /**
     * 执行时长(毫秒)
     */
    private Long time;

    /**
     * IP地址
     */
    private String ip;

    /**
     * 创建时间
     */

    private String createTime;


}
